package com.itheima.test;

public class test3 {
    public static void main(String[] args) {
        //需求：求和1-5
        int sum=0;
        for(int i=1;i<=100;i++){
            //System.out.println(i);
            sum+=i;
        }
        System.out.println(sum);
    }
}
